﻿namespace JavaScript8000.Parser
{

    /// <summary>
    /// Represent result which is returned by parser.
    /// </summary>
    public class ParseResult
    {

        /// <summary>
        /// Gets or sets the grammar tree.
        /// </summary>
        /// <value>
        /// The grammar tree.
        /// </value>
        public GrammarNode GrammarTree { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [was error].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [was error]; otherwise, <c>false</c>.
        /// </value>
        public bool WasError { get; set; }

        /// <summary>
        /// Gets or sets the error message.
        /// </summary>
        /// <value>
        /// The error message.
        /// </value>
        public string ErrorMessage { get; set; }
    }
}
